:root{
    --banner-width: 1200px;
    --primary-color: #ea580C;
    --primary-hover: #dc5005;
    --primary-light: #F97316;
    --shadow-element: rgba(0, 0, 0, 0.1);
}
body.dark-mode{
    --primary-color: #ea580C;
    --primary-hover: #dc5005;
    --primary-light: #F97316;
    --shadow-element: rgba(255, 255, 255, 0.3);
}
body{
    font-family: Arial, PingFangSC-Regular, Microsoft Yahei, "Source Han Serif SC", SimSun;
}
.text-success{
    background-color: unset;
}
.hover-bottom-primary {
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}

.hover-bottom-primary::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 0;
    height: 0.15rem;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}

.hover-bottom-primary:hover {
    color: var(--primary-color);
}

.hover-bottom-primary:hover::after {
    width: 100%;
}
.active-primary{
    padding: 0.25rem;
    border-radius: 0.5rem;
    background-color: var(--primary-color) !important;
    color: white ;
    transition: color 0.3s ease-in-out,background-color 0.3s ease-in-out;
}

.container-banner{
    width: var(--banner-width);
    margin: 0 auto;
}
@media screen and (max-width: 768px) {
    .container-banner{
        width: 100%;
    }
}

.header-container{
    display: flex;
    justify-content: space-between; 
    padding: 0.5rem calc(( 100vw - var(--banner-width) ) / 2 );
}
.header-menu-item{
    text-wrap: nowrap;
}
@media screen and (max-width: 768px) { 
    .header-contaienr{
        padding: 0.5rem ;
    }
    .header-menu{
        overflow-x: scroll;
        width: calc(100vw - 11rem);
    }
    .header-menu::-webkit-scrollbar{
        display: none;
    }
}
.banner {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
}

.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7, #dda0dd, #ff6b6b);
    background-size: 1400% 1400%;
    animation: gradientShift 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    color: white;
    background-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.banner-title {
    font-size: 3.5rem;
    font-weight: 700;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media screen and (max-width: 768px) { 
    .banner{
        height: 150px;
    }
    .banner-title{
        font-size: 2.5rem;
    }

}
.home-item-container{
    display: flex;
    margin: 1rem 0;
}
.home-item{
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 1rem;
    padding: 1rem;
    margin: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 10px var(--shadow-element);
}
.book-container-header{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 1rem;
    box-shadow: 0 0 4px var(--shadow-element);
}
.book-container-category{ 
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.book-container-category-item{ 
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background-color: #e5e7eb;
    white-space: nowrap;
}
body.dark-mode .book-container-category-item{ 
    background-color: unset;
}
@media screen and (max-width: 768px) {
    .book-container-category {
        overflow-x: scroll;
        flex-wrap: nowrap;
    }
    .book-container-category::-webkit-scrollbar{
        display: none;
    }
}
.book-admin-table{
    max-height: calc( 100vh - 17.5rem )
}
@media screen and (max-width: 768px) { 
    .book-admin-table{
        max-height: calc( 100vh - 17.5rem );
    }
}
.button-delete{
    color: red;
    border: none;
    outline: none;
    border-radius: 0.5rem;
}